package com.livestocksolutions.ui;

import com.livestocksolutions.LivestockSolutions;
import com.livestocksolutions.Medicine;
import com.livestocksolutions.UsedMedicine;
/**
 * Display details relating to any Medicine, or a particular Medicine.
 * @author Ken DeVries
 * @author Adam Parr
 * 
 * @.modified 06 March 2013
 */
public class MedicinePanel extends ChemicinePanel<Medicine,UsedMedicine> {
	private static final long serialVersionUID = 1L;
	
	/**
	 * Constructor.
	 */
	public MedicinePanel(){
		super("Medicine");
	}

	@Override
	protected Medicine[] getList(){
		return LivestockSolutions.getOnlyMedicines();
	}
	
	@Override
	protected Medicine newItem(){
		return new Medicine();
	}
}